
package limedia.sdk.api.realtime;

import android.R.integer;

/**
 * Video stream packet data
 * @author THunderSoft
 *
 */
public class TSPcmData {
	
	public static final int FRAME_TYPE_SPS = 0;
	public static final int FRAME_TYPE_PPS = 1;
	public static final int FRAME_TYPE_I = 2;
	public static final int FRAME_TYPE_P = 3;

	private int frameType = -1;
	private int timeStamp = 0;
	
	/**
	 * Video stream packet
	 */
    private byte pcm[];
    /**
     * Packet size
     */
    private int size;
    /**
     * TSPcmData construction
     * @param pcm Video stream packet
     * @param size Packet size
     */
    public TSPcmData(byte[] pcm, int size, int timeStamp) {
        super();
        this.pcm = pcm;
        this.size = size;
        this.timeStamp = timeStamp;
    }
    /**
     * get video stream packet
     * @return video stream packet
     */
    public byte[] getPcm() {
        return pcm;
    }
    /**
     * set video stream packet
     * @param pcm video stream packet
     */
    public void setPcm(byte[] pcm) {
        this.pcm = pcm;
    }
    /**
     * get packet size 
     * @return packet size
     */
    public int getSize() {
        return size;
    }
    /**
     * set packet size
     * @param size packet size
     */
    public void setSize(int size) {
        this.size = size;
    }
    
	public int getFrameType() {
		return frameType;
	}
	
	public void setFrameType(int frameType) {
		this.frameType = frameType;
	}
	
	public int getTimeStamp() {
		return timeStamp;
	}
	
	public void setTimeStamp(int timeStamp) {
		this.timeStamp = timeStamp;
	}
}
